import { requestClient } from '#/api/request'

/**
 * 获取商品分类树
 */
export async function getCategoryTree(params?: any) {
  return requestClient.get('/admin/GoodsCategory/getTreeAll', params)
}

/**
 * 获取商品分类列表
 */
export async function getCategoryList(params: any) {
  return requestClient.get('/admin/GoodsCategory/index', params)
}

/**
 * 获取商品分类列表
 */
export async function categoryEdit(params: any) {
  return requestClient.post('/admin/GoodsCategory/edit', params, { responseReturn: 'raw' })
}

/**
 * 获取商品分类列表
 */
export async function categoryInfo(params: any) {
  return requestClient.get('/admin/GoodsCategory/edit', params)
}


/**
 * 更新
 */
export async function categoryUpdata(params: any) {
  return requestClient.post('/admin/GoodsCategory/edit', params, { responseReturn: 'raw' })
}
